/*---------------------------------------------------------------- 
// 文件功能描述：样式表正文
//----------------------------------------------------------------*/
@import "_normal";
@import "_public";
// 阴影
.shadow1{
    box-shadow:0 0.05rem 0.3rem rgba(59,100,168,0.15);
    -webkit-box-shadow:0 0.05rem 0.3rem rgba(59,100,168,0.15);
}
.shadow2{
    box-shadow: 0 0.1rem 0.2rem rgba(2,175,254,.25);
	-webkit-box-shadow: 0 0.1rem 0.2rem rgba(2,175,254,.25);
}
.shadow3{
    box-shadow: 0 0 0.4rem rgba(59,100,168,0.15);
	-webkit-box-shadow: 0 0 0.4rem rgba(59,100,168,0.15);
}
//搜索
.search-entry{
    background: #f3f5f7 url(../img/icon/search.png) no-repeat 0.2rem center;
    background-size: 0.4rem 0.4rem; ;
    color: #ccc;
    font-size: 0.3rem;
    height: 0.7rem;
    line-height: 0.7rem;
    border-radius: 0.38rem;
    padding-left: 0.8rem;
    box-sizing: border-box;
    width: 100%;
}
//模块标题
.module-title{
    font-size: 0.36rem;
    line-height: 1;
    font-weight: bold;
}
//主按钮
.btn-box-main{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    font-size: 0.36rem;
    line-height: 0.9rem;
    text-align: center;
    padding: 0.26rem 0.32rem 0.34rem;
    background: #fff;
    box-sizing: border-box;
    border-top:1px solid #d9d9d9;
    .btn-blue{
        display: block;
        width: 100%;
        height: .9rem;
        background: #02affe;
        color: #fff;
        border-radius: 0.5rem;
    }
    .btn-task,
    .btn-clock{
        .left{
            width:1.56rem; 
            color: #666;
            font-size: 0.26rem;
            background: no-repeat center 0;
            background-size: 0.62rem 0.56rem; 
            padding-top: 0.62rem;
            line-height: 1;
            @extend .ellipsis;
        }
        .btn-collect{
            background-image: url(~@/assets/img/menu/bookshelf.png);
            &.is-collect{
                background-image: url(~@/assets/img/menu/btn-collected.png);
                color: #999;
            } 
        }
        .btn-read{
            background-image: url(~@/assets/img/menu/btn-read.png);
        }
        .btn-challenge{
            background-image: url(~@/assets/img/menu/btn-challenge.png);
        }
        .right{
            height: 0.9rem;
            line-height: 0.9rem;
            border-radius: 0.5rem;
            width: calc(100% - 1.8rem);
            background: #02affe;
            color: #fff;
            &.has-read{
                width: calc(100% - 3.4rem);
            }
        }
    }
}
// 图片九宫格
.img-lattice{
    li{
        overflow: hidden;
        position: relative; 
        border-radius: 0.2rem;
        text-align: center;
    }
    img{
        border-radius: 0.2rem;
        background: #ebeef2;
    }
    .lattice-box1{
        // margin: 1%;
        img{
            max-width: 100%;
            max-height: 6.8rem;
        }
    }
    .lattice-box2{
        float: left;
        width:48%;
        padding-bottom:48%;
        margin: 1%;
        img{
            max-width: 200%;
            max-height: 200%;
            @include center(absolute,50%,50%,-50%,-50%);
        }
    }
    .lattice-box3{
        float: left;
        width:31%;
        padding-bottom:31%;
        margin: 1%;
        img{
            max-width: 200%;
            max-height: 200%;
            @include center(absolute,50%,50%,-50%,-50%);
        }
    }
}
// 查看大图
.mask-lookimg{
    background: rgba(0,0,0,1); 
    img{
        @include elementSize(100%,auto);
        @include center(absolute,50%,0,0,-50%);
        &.vertical{
            @include elementSize(auto,100%);
        }
    }   
}
// 时间轴列表
.time-axis{
    padding: 0.68rem 0;
    .day-list{
        padding-left: 1.06rem;
        background: url(~@/assets/img/icon/dot-line.png) repeat-y 0.38rem 0;
        background-size: 0.04rem 0.16rem; 
    }
    .day{
        width: 0.8rem;
        height: 0.88rem; 
        background: url(~@/assets/img/main/day.png) no-repeat 0 0;
        background-size: 100% 100%; 
        position: absolute;
        top: 0;
        left: -1.06rem;
        color: #fff;
        text-align: center;
        span{
            display: block;
            font-size: 0.3rem;
            font-weight: bold;
            line-height: 1;
            padding: 0.18rem 0 0.04rem;
        }
        i{
            display: block;
            font-size: 0.2rem;
            line-height: 1;
        }
    }
    .user-info{
        height: 0.5rem;
        line-height: 0.5rem;
        font-size: 0.3rem;
        padding-bottom: 0.1rem;
        img{
            @include elementSize(0.5rem,0.5rem);
            border-radius: 50%;
        }
        span{
            padding-left: 0.18rem;
        }
    }
    li{
        // padding: 0.38rem 0.32rem 0.34rem 0.38rem;
        padding: 0.38rem 0.32rem 0.38rem 0.38rem;
        margin-bottom: 0.3rem;
        border-radius: 0.3rem;
        background: #fff;
        position: relative;
        h4{
            padding-top: 0.12rem;
            font-size: 0.34rem;
            line-height: 0.48rem;
        }
        p{
            padding-top: 0.06rem;
            font-size: 0.3rem;
            line-height: 0.4rem;
            color: #666;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
    } 
    .review-page{
        line-height: 1;
        padding-top: 0.26rem;
        span{
            color: #999;
        }
    }
    .like{
        height: 0.28rem;
        line-height: 0.28rem;
        color: #666;
        width: 0.9rem;
        padding-left: 0.42rem;
        box-sizing: border-box;
        background: url(~@/assets/img/icon/like-n.png) no-repeat 0 center;
        background-size: 0.32rem 0.26rem;
        &.islike{
            background-image: url(~@/assets/img/icon/like-y.png);
        }
    }
}
// 
.class-box{
    background: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 1.08rem 0 0.8rem 0.3rem;
    border-radius: 0.42rem 0.42rem 0 0;
    font-size: 0.3rem;
    li{
        padding: 0 0.09rem 0.3rem;
        span{
            display: block;
            padding: 0 0.26rem;
            height: 0.8rem;
            line-height: 0.8rem;
            background: #eff1f3;
            text-align: center;
            border-radius: 0.44rem;
            color: #666;
        }
        &.ischose span{
            color: #fff;
            background: #02affe;
        }
    }
    .grade-close{
        width: 0.5rem;
        height: 0.5rem;
        background: url(~@/assets/img/icon/close.png) no-repeat 0 0;
        background-size: 100%;
        position: absolute;
        top: 0.32rem;
        right: 0.32rem;
    }
}

.history-picker{
    .picker-box{
        background: #fff;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        border-radius: 0.42rem 0.42rem 0 0;
        padding: 1.08rem 0.32rem 0.4rem 0.32rem;
    } 
    .picker-close{
        width: 0.5rem;
        height: 0.5rem;
        background: url(~@/assets/img/icon/close.png) no-repeat 0 0;
        background-size: 100%;
        position: absolute;
        top: 0.32rem;
        right: 0.32rem;
    }
    .history-list{
        height: 2.4rem;
        overflow-y: scroll;
        &.isone{
            height: 1.6rem;
        }
    }
    .history-item{
        margin-bottom: 0.3rem;
        height: 1rem;
        line-height: 1rem;
        border-radius: 0.5rem;
        box-sizing: border-box;
        padding-left: 0.36rem;
        background: #f3fae6;
    }
    .history-item span{
        background: #85cd0d;
        height: 0.48rem;
        line-height: 0.48rem;
        padding: 0 0.22rem;
        border-radius: 0.26rem;
        color: #fff;
        font-size: 0.22rem;
        margin-top: 0.26rem;
    }
    .history-item.istest{
        background: #fff4e5;
    
    }
    .history-item.istest span{
        background: #ff9600;
    }
    .history-item span.isclass{
        background: #ffa800;
    }
    .history-item i{
        font-size: 0.28rem;
        padding-left: 0.2rem;
        color: #85cd0d;
    } 
    .history-item.istest i{
        color: #ff9600;
    }
    .history-item i.ischose{
        /* color: #02affe; */
        /* font-size: 0.3rem; */
    }
}


// 登录
.login-title{
    padding: 1rem 0 0.9rem;
    text-align: center;
    span{
        font-size: 0.6rem;
        font-weight: bold; 
    }
    p{
        font-size: 0.28rem;
        color: #999;
        padding: 0.28rem 0.32rem 0;
        i{
            color: #333;
        }
    }
}
.login,
.reset{
    width: 100%;
    height: 100%;
    .send,
    .check{
        width: 100%;
        height: 100%;
    }
    .login-input{
       @include elementSize(5.2rem,1.1rem);
       position: relative;
       margin: 0 auto 0.24rem;
       box-sizing: border-box;
       background: #f7f7f7 no-repeat 0.54rem center;
       background-size: 0.4rem auto;
       box-sizing: border-box;
       border-radius: 0.6rem;
       padding: 0.34rem 0.8rem;
       input{
            text-align: center;
            height: 0.42rem;
            line-height: 0.42rem;
            width: 100%;
            font-size: 0.4rem;
            color: #000;
            background: transparent;
            &::-webkit-input-placeholder{
                color: #ccc;
            }
            &::-moz-placeholder{
                color: #ccc;
            }
            &:-moz-placeholder{
                color: #ccc;
            }
            &:-ms-input-placeholder{
                color: #ccc;
            }
        }
        .clean{
            @include elementSize(0.3rem,100%);
            position: absolute;
            top: 0;
            right: 0.36rem;
            background: url(../img/icon/clean.png) no-repeat center center;
            background-size: 0.18rem auto;
        }
    }

    .login-btn{
        @include elementSize(5.2rem,1.1rem);
        background-color: #02affe;
        margin:0.4rem auto 0;
        color:#fff;
        line-height: 1.1rem;
        border-radius: 0.6rem;
        text-align: center;
        font-size: 0.4rem;
        opacity: 0.5;
        &.can-login{
            opacity: 1;
        }
    }
    
    .round-btn{
        @include elementSize(1.3rem,1.3rem);
        background: #f7f7f7 url(~@/assets/img/icon/next-n.png) no-repeat center center;
        background-size: 0.45rem 0.39rem;
        color:#fff;
        border-radius: 50%;
        // position: relative;
        // left: 50%;
        // bottom: 3.1rem;
        margin: 0.5rem auto 0;
        span{
            display: block;
            height: 100%;
            background: url(~@/assets/img/icon/loading.png) no-repeat center center;
            background-size: 0.56rem 0.56rem;
            animation: inLoading 0.6s linear 0s infinite;
            -webkit-animation: inLoading 0.6s linear 0s infinite;
        }
        &.can-login{
            background-color: $main-color;
            background-image: url(~@/assets/img/icon/next-y.png);
            &.waiting{
                background-image: url('');
            }
        }
    }
    .login-tips{
        width: 6.2rem;
        position: absolute;
        bottom: 1.64rem;
        left: 50%;
        margin-left: -3.1rem;
        background: #f7f7f7;
        line-height: 0.36rem;
        color: #999;
        border-radius: 0.28rem;
        padding: 0.24rem 0.34rem;
        box-sizing: border-box;
    } 
    .login-tab{
        font-size: 0.28rem;
        position: absolute;
        left: 50%;
        bottom: 0.78rem;
        width: 5.4rem;
        margin-left: -2.5rem;
        text-align: center;
        .tab-box{
            width: 3.84rem;
            margin: 0 auto;
        }
        i{
            height: 0.28rem;
            border-right: 1px solid #e0e0e0;
            padding-left: 0.48rem;
            margin-right: 0.52rem;
            margin-top: 0.08rem;
        }
    }
    .btn-send{
        text-align: center;
        font-size: 0.28rem;
        padding-top: 0.1rem;
        i{
          color: #ccc;  
        }
        span{
            color: $main-color;
        }
    }
    .check-input{
        position: relative;
        padding-bottom: .36rem;
        width: 100%;
        .check-num{
            position: absolute;
            top: 0;
            left: -100%;
            width: 200%;
            height: 1rem;
            background: transparent;
            color: #333;
            font-size: 0.46rem;
            font-weight: bold;
        }
        .num-list{
            width: 6.24rem;
            padding-left: .2rem;
            margin: 0 auto;
        }
        .num-box{
            width: .84rem;
            height: 1rem;
            background: #f7f7f7;
            border-radius: .2rem;
            margin-right: .2rem;
            text-align: center;
            line-height: 1rem;
            font-size: .6rem;
        }
    }
      
    /* 光标的样式 */
    .cursor {
        width: 0.04rem;
        height: .32rem;
        background-color: $main-color;
        margin: .34rem .4rem;
        animation: focus 1s infinite;
    }
    /* 光标动画 */
    @keyframes focus {
        from {
          opacity: 1;
        }
      
        to {
          opacity: 0;
        }
    }
}

//选角
.roles{
    .login-title{
        padding-bottom: 0.38rem;
    }
    .role-body{
        @include elementSize(100%,5.1rem);
        padding: 0.6rem 0;
        overflow:hidden;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        &::-webkit-scrollbar{
            display:none;
        }
    }
    .role-list{
        width: 100rem;
        padding-left: 0.6rem;
    }
    .role-box{
        @include elementSize(3.02rem,5.1rem);
        border-radius: 0.4rem;
        margin-right: 0.28rem;
        box-sizing: border-box;
        padding: 0.8rem 0.34rem 0;
        font-size:0.28rem;
        text-align: center;
        box-shadow: 0 0 0.5rem rgba(0,0,0,.08);
        -webkit-box-shadow: 0 0 0.5rem rgba(0,0,0,.08);
        position: relative;
        .chose-icon{
            @include elementSize(0.64rem,0.64rem);
            position: absolute;
            top: 0.2rem;
            right:0.2rem;
            border-radius: 50%;
            background: #02affe url(../img/icon/chose.png) no-repeat center center;
            background-size: 0.33rem 0.25rem;
        }
        .head{
            width: 1.28rem;
            height: 1.28rem;
            background: #ebeef2;
            border-radius: 50%;
            position: relative;
            margin: 0 auto;
            img{
                border-radius: 50%;
                @include elementSize(100%,100%);
            }
            span{
                position: absolute;
                bottom: 0;
                right: 0.06rem;
                width: 0.44rem;
                height: 0.44rem;
                background: #85cd0d;
                border-radius: 50%;
                font-size: 0.24rem;
                line-height: 0.44rem;
                color: #fff;
                &.t{
                    background: #ffb600;
                }
              }
        }
        .name{
            font-size: 0.36rem;
            font-weight: bold;
            color: #000;
            line-height: 1;
            padding: 0.38rem 0 0.22rem;
            width: 100%;
            white-space:nowrap; 
            overflow: hidden;
            text-overflow:ellipsis;
        }
        .class{
            color: #999;
        }
        .school{
            color: #666;
            line-height: 0.4rem;
            padding-top: 0.16rem;
            width: 100%;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
    }
    
}

// 书架
.bookshelf{
    padding: 0.1rem 0 1.1rem 0.42rem;
    .user{
        padding-bottom:0.4rem;
        .avatar{
            @include elementSize(0.8rem,0.8rem);
            border-radius: 50%;
            background: #ebeef2;
        }
        .info{
            padding-left: 0.2rem;
        }
        .name{
            font-weight: bold;
            font-size: 0.34rem;
            line-height: 0.52rem;
            max-width: 4rem;
            @extend .ellipsis;
        }
        .class{
            font-size: 0.22rem;
            color: #999;
            line-height: 1;
        }
        
    }
    .book-list li{
        .label{
            width: 1.3rem;
            // height: 0.5rem;
            // line-height: 0.5rem;
            padding: 0.1rem 0;
            position: absolute;
            top: 0;
            left: 0;
            color: #fff;
            font-size: 0.26rem;
            text-align: center;
            border-bottom-right-radius:0.4rem; 
            &.new{
                background: #02affe;
            }
            &.clock-in{
                background: #85cd0d;
            }
            &.clock-up{
                background: #ccc;
            }
            &.test-in{
                background: #ff7100;
            }
        }
        .book-mask{
            @include elementSize(100%,100%);
            background: rgba(0,0,0,.3) url(../img/main/read.png) no-repeat center center;
            background-size: 1.16rem 1.16rem; 
            position: absolute;
            top: 0;
            left: 0;
            z-index: 5;
        }
    }
    
}
.create-task{
    .picker-items{
        padding: 0 0.32rem;
    }
    .mint-datetime-action{
        color: #02affe;
    }
}
.create-task .book-list,
.bookshelf .book-list{
    li{
        padding: 0 0.3rem 0.5rem 0;
        .btn-add{
            background:url(../img/icon/add.png) no-repeat center 0.9rem;
            background-size: 0.56rem 0.56rem; 
            color: #cdd5dd;
            font-size: 0.2rem;
            line-height: 1;
            box-sizing: border-box;
            padding-top: 1.8rem;
            text-align: center;
        }
        .book-box{
            @include elementSize(2.02rem,2.7rem);
            border-radius: 0.2rem;
            overflow: hidden;
            position: relative;
            img{
                @include elementSize(100%,100%);
                border-radius: 0.22rem;
            }
        }
        .name{
            width: 2.02rem;
            @extend .ellipsis;
            line-height: 1;
            padding-top: 0.24rem;
            text-align: center;
        }
    }
}
// 书本详情
.book-detail-bg{
    box-sizing: border-box;
    min-height: 100%;
    padding-top: 3.2rem;
    background: url(../img/main/detail-bg.png) no-repeat 0 0;
    background-size: 100% auto; 
}
.has-task-box{
    border-radius: 0.48rem 0.48rem 0 0;
}
.book-detail{
    padding: 0.52rem 0.32rem 1.5rem;
    font-size: 0.3rem;
    background: #fff;
    .no-task{
        .book-img{
            @include elementSize(2.5rem,3.34rem);
            border-radius: 0.2rem;
        }        
    }
    .book-info{
        padding-left: 0.48rem;
        height: 3.34rem;
        position: relative;
        max-width: 3.88rem;
        h3{
            font-size: 0.4rem;
            line-height: 1;
            padding-top: 0.26rem;
            padding-bottom: 0.2rem;
            font-weight: bold;
        }
        .author{
            font-size: 0.26rem;
            line-height: 1; 
            padding-bottom: 0.16rem;
            word-wrap: break-word;
            word-break: normal;
        }
        p{
            color: #666;
            font-size: 0.26rem;
            line-height: 0.4rem;
            word-wrap: break-word;
            word-break: normal;
        }
        .label{
            position: absolute;
            left: 0.48rem;
            bottom: 0;
            width: 3.88rem;
            span{
                // height: 0.5rem;
                // line-height: 0.5rem;
                float: left;
                text-align: center;
                font-size: 0.28rem;
                padding: 0.08rem 0.2rem;
                min-width: 1.4rem;
                box-sizing: border-box;
                border-radius: 0.28rem;
                margin-bottom: 0.08rem;
                max-width: 100%;
                white-space:nowrap; 
                overflow: hidden;
                text-overflow:ellipsis;
                background: #e5f7ff;
                color: #02affe;
            }
        }
    }
    .task-data{
        padding: 0.54rem 0 0.46rem;
        li{
            @include elementSize(0.4rem,0.4rem);
            border:1px solid #fff;
            border-radius: 50%;
            // background: #ebeef2;
            margin-right: -0.16rem;
            overflow: hidden;
            img{
                @include elementSize(100%,100%);
            }
            &.more{
                background:#ebeef2 url(../img/icon/ellipsis.png) no-repeat center center;
                background-size: 0.26rem 0.06rem;  
            }
        }
        span{
            font-size: 0.26rem;
            color: #999;
            padding-left: 0.3rem;
        }
        i{
            color: #666;
        }
    }
    .intro-box{
        background: #f7f7f7;
        line-height: 0.5rem;
        padding: 0.34rem 0.36rem 0.2rem;
        border-radius: 0.2rem;
        margin: 0.3rem 0 0.58rem;
        .is-ellipsis{
            // max-height: 1.34rem;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
    }
    .btn-more{
        color: #01a0fe;
        font-size: 0.28rem;
        background: url(../img/icon/more.png) no-repeat center right;
        background-size: 0.32rem 0.32rem;
        width: 1.56rem;
        margin: 0.1rem auto 0;
        &.btn-less{
            background: url(../img/icon/less.png) no-repeat center right;
            background-size: 0.32rem 0.32rem;
        }
    }
    .has-task{
        .book-box{
            width: 5.18rem;
            margin: -2.96rem auto 0;
            background: url(../img/main/shadow.png) no-repeat top right;
            background-size: 1rem 2.44rem; 
        }
        .book-img{
            position: relative;
            @include elementSize(3.12rem,4.04rem);
            border-radius: 0.2rem;
            margin: 0 auto;
        }
        img{
            @include elementSize(3.02rem,4.04rem); 
            border-radius: 0.2rem;
            box-shadow: 0.1rem 0 #fff;
            -webkit-box-shadow: 0.1rem 0 #fff;
            
        }
        .book-title{
            font-size: 0.48rem;
            text-align: center;
            font-weight: bold;
            // word-wrap: break-word;
            // word-break: normal;
            line-height: 1;
            padding: 0.54rem 0 0.14rem;
        }
        .book-author{
            color: #999;
            font-size: 0.26rem;
            text-align: center;
        }
    }
    .btn-writing{
        height: 0.6rem;
        font-size: 0.28rem;
        position: absolute;
        top: -0.14rem;
        right: 0;
        background: #d9f3ff url(../img/icon/writing.png) no-repeat 0.26rem center;
        background-size: 0.29rem 0.29rem;;
        color: #02affe;
        border-radius: 0.34rem;
        line-height: 1;
        padding: 0.17rem 0.3rem 0 0.66rem;
        box-sizing: border-box;
    }
    .progress-box{
        margin: 0.38rem 0 0.8rem;
        background: #fff;
        border-radius: 0.4rem;
        box-sizing: border-box;
        padding: 0.4rem 0.5rem 0.56rem;
        box-shadow:0 0.05rem 0.5rem rgba(59,100,168,0.15);
        -webkit-box-shadow:0 0.05rem 0.5rem rgba(59,100,168,0.15);
    }
    .prog-time{
        line-height: 1;
        padding:0.2rem 0 0.3rem;
        span{
            color: #02affe;
            font-size: 0.32rem;
            
        }
        i{
            font-size: 0.48rem;
        }
        em{
            color: #8d9db1;
            font-size: 0.26rem;
            padding-top: 0.2rem;
        }
        .close-task{
            color: #02affe;
        }
    }
    .in-progress{
        @include elementSize(100%,0.12rem);
        box-sizing:border-box;
        -webkit-box-sizing:border-box;
        background: #ebeef2;
        border-radius: 0.7rem;
        position: relative;
        .in-elapse{
            position: absolute;
            left: 0;
            top: 0; 
            @include elementSize(0,100%);
            background: #02affe;
            border-radius: 0.7rem;
        }
    }
    .task-class{
        text-align: center;
        color: #999;
        font-size: 0.28rem;
        line-height: 1;
        padding-top: 0.3rem;
    }
    .review-box .li-main p{
        -webkit-line-clamp: 2;
        line-clamp: 2;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
.review-box{
    position: relative;
    .review-list{
        padding-top: 0.46rem;
        li{
            padding-bottom: 0.16rem;
        }
    }
    .li-top{
        height: 0.5rem;
        line-height: 0.5rem;
        img{
            @include elementSize(0.5rem,0.5rem);
            border-radius: 50%;
        }
        i{
            padding-left: 0.18rem;
            
        }
        span{
            color: #02affe;
            padding-right: 0.28rem;
        }
    }
    .li-main{
        background: #f7f7f7;
        border-radius: 0.2rem;
        line-height: 0.4rem;
        padding: 0.26rem 0.28rem 0.22rem;
        margin-top: 0.2rem;
        word-wrap: break-word;
        word-break: break-all;
    }
    .li-bottom{
        font-size: 0.24rem;
        color: #666;
        height: 0.86rem;
        line-height: 0.86rem;
        i{
            padding: 0 0.2rem 0 0.24rem;
        }
        span{
            color: #ccc;
        }
        .like{
            width: 1.02rem;
            padding-left: 0.42rem;
            box-sizing: border-box;
            background: url(../img/icon/like-n.png) no-repeat 0 center;
            background-size: 0.32rem 0.26rem;
            &.islike{
                background-image: url(../img/icon/like-y.png);
            }
        }
    }
}
// 图书馆
.library{
    padding: 0.2rem 0.32rem 1.1rem;
    font-size: 0.3rem;
    .sort-list{
        @include flexBox(space-between);
        -webkit-flex-wrap:wrap;
        flex-wrap:wrap;
    }
    .sort-item.sort-school{
        @include elementSize(100%,2.3rem);
        margin-bottom: 0.4rem;
        position: relative;
    }
    .school-label{
        width: 1.7rem;
        color: #fff;
        font-size: 0.26rem;
        // height: 0.5rem;
        // line-height: 0.5rem;
        padding: 0.1rem 0;
        text-align: center;
        background: #ffb600;
        border-radius: 0.3rem 0 0.38rem 0;
        position: absolute;
        top: 0;
        left: 0;
    }
    .school-img{
        @include elementSize(1.8rem,1.8rem);
        border-radius: 0.2rem;
    }
    .sort-name.school-name{
        @include elementSize(4.1rem,100%);
        padding: 0 0 0 0.34rem;

        display:-webkit-box;
        display:-webkit-flex;
        display: flex;
        -webkit-flex-direction:column;
        flex-direction:column;
        -webkit-justify-content: center;
        justify-content: center;
        h4{
            font-size: 0.36rem;
        }
        p{
            font-size: 0.26rem;
            padding-top: 0.28rem;
        }
    }
    .sort-item{
        @include elementSize(3.32rem,1.7rem);
        margin-bottom: 0.3rem;
        background: #fff;
        box-sizing: border-box;
        padding:0.24rem 0 0.24rem 0.3rem;
        border-radius: 0.3rem;
    }
    .sort-img{
        @include elementSize(1.2rem,1.2rem);
        border-radius: 0.2rem;
    }
    .sort-name{
        width: 1.3rem;
        padding: 0.24rem 0 0  0.22rem;
        word-wrap: break-word;
        word-break: normal;
        h4{
            font-weight: bold;
            color: #000;
            line-height: 1;
        }
        p{
            font-size: 0.24rem;
            padding-top: 0.14rem;
            color: #666;
            line-height: 1;
        }
    }
}
//挑战背景
.challenge{
    background: url(~@/assets/img/main/chal-bg.png) repeat-y 0 0;
    background-size: 100% auto;
    height: 100%;
    box-sizing: border-box;
    padding: 0 0.32rem;
    .chal-con{
        background: #fff;
        border-radius: 0.4rem;
        position: relative;
        height: 100%;
        box-sizing: border-box;
    }
    .chal-con-box{
        height: 100%;
        overflow: scroll;
        position: relative;
    }
    .chal-btn{
        background: #ffd300;
        color: #8f520f;
        font-size: 0.36rem;
        width: 3.6rem;
        height: 1rem;
        line-height: 1rem;
        text-align: center;
        border-radius: 0.5rem;
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        margin-left: -1.8rem;
        font-weight: bold;
    }
}
// 任务卡片
.task-card{
    ul{
        padding: 0.4rem 0 0;
    }
    li{
        padding: 0.4rem 0 0.4rem 0.38rem;
        border-radius: 0.3rem;
        position: relative;
        margin-bottom: 0.3rem;
    }
    .btn-label{
        width: 2.1rem;
        position: absolute;
        bottom: 0;
        right: 0;
        font-size: 0.26rem;
        line-height: 1;
        padding: 0.18rem 0;
        text-align: center;
        border-radius: 0.4rem 0 0.3rem 0;
        color: #fff;
        &.btn-test{
            background: #ff9600;
        }
        &.btn-clock{
            background: #85cd0d;
        }
        &.isclock{
            background: #ccc;
        }
    }  
    .card-img{
        width: 1.6rem;
        height: 2.14rem;
        border-radius: 0.2rem;
    }
    .card-con{
        width: 3.94rem;
        padding-left: 0.4rem;
        h4{
            font-size: 0.36rem;
            line-height: 1;
            padding: 0.22rem 0;
            font-weight: bold;
            color: #000;
            white-space:nowrap; 
            overflow: hidden;
            text-overflow:ellipsis;
        }
        p{
            color: #8d9db1;
            font-size: 0.26rem;
            line-height: 0.58rem;
        }
    }
    .in-progress{
        width: 100%;
        height: 0.12rem;
        box-sizing:border-box;
        -webkit-box-sizing:border-box;
        background: #ebeef2;
        border-radius: 0.7rem;
        position: relative;
    }
    .in-elapse{
        width: 0;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0; 
        background: #02affe;
        border-radius: 0.7rem;
    }  
} 
